package com.lagou.sqlSession;

import java.util.List;

public interface SqlSession {

    // 查询所有
    <E> List<E> selectList(String statementId, Object... params) throws Exception;

    // 查询单个
    <T> T selectOne(String statementId, Object... params) throws Exception;

    // 插入
    int insert(String statementId, Object... params) throws Exception;

    // 更新
    int update(String statementId, Object... params) throws Exception;

    // 删除
    int delete(String statementId, Object... params) throws Exception;

    // 为Dao接口生产代理实现类
    <T> T getMapper(Class<?> mapperClass);

}
